﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;

namespace ZK.BLL.Config
{
    public class AppSettingsConfig
    {
        public static string PassWord
        {
            get
            {
                return AppSettingValue("PassWord");
            }
        }

        
        public static string RegisterCode
        {
            get
            {
                return AppSettingValue("RegisterCode");
            }
        }


        public static string Title
        {
            get
            {
                return AppSettingValue("Title");
            }
        }

        //public static float MinScore
        //{
        //    get
        //    {
        //        return float.Parse(AppSettingValue("MinScore"));
        //    }
        //}



        //private static string AppSettingValue([CallerMemberName]string key = null)
        //{
        //    return ConfigurationManager.AppSettings[key];
        //}


        private static string AppSettingValue( string key = null)
        {
            return ConfigurationManager.AppSettings[key];
        }
    }
}
